package com.wangzhen.jvm.initclass;

import java.sql.Connection;
import java.sql.DriverManager;

public class NotInitialization {
    public static void main(String[] args) {
        SubClass subClass = new SubClass();
        System.out.println(subClass.value);


        try {
            Class.forName("com.mysql.jdbc.Driver");
            Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "root", "root");
            System.out.println(connection);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}
